package com.lagou.demo.controller;

import com.lagou.mvc.annotations.Controller;
import com.lagou.mvc.annotations.RequestMapping;
import com.lagou.mvc.annotations.Security;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping("/demo")
public class AnotherDemoController {

    @Security({"tom", "jack"})
    @RequestMapping("/another")
    public String query(HttpServletRequest request, HttpServletResponse response, String name) {
        System.out.println("AnotherDemoController: query");
        return "another";
    }
}
